package com.anolesoft.amljmes.fortyone.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class ZdmDto {
    private Map<String,String> map;

    public String getZdm(String zdm){
        this.map = new HashMap<>();
        map.put("pmd","平面度（mm）");
        map.put("zxd","直线度（mm）");
        map.put("ccd","粗糙度（um）");
        map.put("qxjmc","清洗剂名称");
        map.put("sbbh","设备编号");
        map.put("qxwd","清洗温度");
        map.put("gzfs","干燥方式");
        map.put("gzwd","干燥温度（°C）");
        map.put("gzsj","干燥时间（min）");
        map.put("cxdj","脆性等级");
        map.put("ydzHrc","硬度值（HRC）");
        map.put("ydzHra","硬度值（HRA）");
        map.put("ydzHr15n","硬度值（HR15N）");
        map.put("ydzHb","硬度值（HB）");
        map.put("ydzHv","硬度值（HV）");
        map.put("jzqpmd","校正前平面度（mm）");
        map.put("jzqzxd","校正前直线度（mm）");
        map.put("jzhpmd","校正后平面度（mm）");
        map.put("jzhzxd","校正后直线度（mm）");
        map.put("jxxnlhsybgbh","机械性能理化实验报告编号");
        map.put("jxjclhsybgbh","金相检查理化实验报告编号");
        map.put("bmys","表面颜色");
        map.put("dydstwd","第一段渗碳温度（°C）");
        map.put("dydstsj","第一段渗碳时间（min）");
        map.put("dydstts","第一段渗碳碳势（%）");
        map.put("dedstwd","第二段渗碳温度（°C）");
        map.put("dedstsj","第二段渗碳时间（min）");
        map.put("dedstts","第二段渗碳碳势（%）");
        map.put("dygsyqcsj","第一根试样（棒）取出时间（min）");
        map.put("dygsyschd","第一根试样（棒）渗层厚度（mm）");
        map.put("degsyqcsj","第二根试样（棒）取出时间（min）");
        map.put("degsyschd","第二根试样（棒）渗层厚度（mm）");
        map.put("dsgsyqcsj","第三根试样（棒）取出时间（min）");
        map.put("dsgsyschd","第三根试样（棒）渗层厚度（mm）");
        map.put("llts","炉冷碳势（%）");
        map.put("clwd","出炉温度（°C）");
        map.put("bmhhwd","表面活化温度（°C）");
        map.put("bmhhsj","表面活化时间（min）");
        map.put("yyhwd","预氧化温度（°C）");
        map.put("yyhsj","预氧化时间（min）");
        map.put("dydstjrwd","第一段渗氮加热温度（°C）");
        map.put("dydstbwsj","第一段渗氮保温时间（min）");
        map.put("dydstafjl","第一段渗氮氨分解率（%）");
        map.put("dedstjrwd","第二段渗氮加热温度（°C）");
        map.put("dedstbwsj","第二段渗氮保温时间（min）");
        map.put("dedstafjl","第二段渗氮氨分解率（%）");
        map.put("dsdstjrwd","第三段渗氮加热温度（°C）");
        map.put("dsdstbwsj","第三段渗氮保温时间（min）");
        map.put("dsdstafjl","第三段渗氮氨分解率（%）");
        map.put("qljzmc","气冷介质名称");
        map.put("zkgzyl","真空工作压力（Pa）");
        map.put("dydjrwd","第一段加热温度（°C）");
        map.put("dydjrbwsj","第一段加热保温时间（min）");
        map.put("dedjrwd","第二段加热温度（°C）");
        map.put("dedjrbwsj","第二段加热保温时间（min）");
        map.put("dsdjrwd","第三段加热温度（°C）");
        map.put("dsdjrbwsj","第三段加热保温时间（min）");
        map.put("dsidjrwd","第四段加热温度（°C）");
        map.put("dsidjrbwsj","第四段加热保温时间（min）");
        map.put("lqfs","冷却方式");
        map.put("shuiwen","水温（°C）");
        map.put("youwen","油温（°C）");
        map.put("lpqtmc","冷却气体名称");
        map.put("tqyq","通气压强（bar）");
        map.put("zysj","转移时间（S）");
        map.put("sbbhdedjrbw","设备编号(第二段加热保温)");
        map.put("sbbhdsdjrbw","设备编号(第三段加热保温)");
        map.put("sbbhdsidjrbw","设备编号(第四段加热保温)");
        map.put("clsj","出炉时间");
        map.put("cqwd","充气温度（°C）");
        map.put("chjssj","淬火结束时间");

        String zwzdm = map.get(zdm);

        return zwzdm;
    }
}
